#include<iostream>
#include<vector>
#include<list>
#include<algorithm>
using namespace std;
bool sor(int a, int b)
	{
		return a > b;
	}
int main()
{
	vector<int>arr;
	list<int>li;
	int num;

	for (int i = 3; i > 0; i--)
	{
		cin >> num;
		arr.push_back(num);
	}
	sort(arr.begin(),arr.end(),sor);
	unique_copy(arr.begin(), arr.end(), back_inserter(li));
	for (auto k : li)
	{
		cout << k << endl;
	}
}